//
//  NSAttributedString+Extensions.h
//  Whistle
//
//  Created by ZhangAo on 15/12/14.
//  Copyright © 2015年 BookSir. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface NSAttributedString (Extensions)

// 增加图片
- (NSAttributedString *)addImage:(UIImage *)image;

- (NSAttributedString *)addImage:(UIImage *)image offset:(CGPoint)offset;

@end

@interface NSMutableAttributedString (Extensions)

// 识别电话
- (void)recognizePhone:(NSDictionary *)phoneAttributes;

// 识别邮箱
- (void)recognizeMail:(NSDictionary *)mailAttributes;

// 识别 URL
- (void)recognizeURL:(NSDictionary *)URLAttributes;

// 增加图片
- (void)addImage:(UIImage *)image;

- (void)addLineSpacing:(CGFloat)height;

@end

@interface NSMutableAttributedString (Image)

// 增加图片
- (void)addImage:(UIImage *)image;

- (void)addImage:(UIImage *)image offset:(CGPoint)offset;

@end
